| 
                
               | 
              
                
               | 
              
                @@ -241,11 +241,6 @@ def flyimg_upload_api(request): 
               | 
            
            
            
              | 
                241
               | 
              
                241
               | 
              
                  
               | 
            
            
            
              | 
                242
               | 
              
                242
               | 
              
                     current_id = int(request.POST.get('current_id', -1))
               | 
            
            
            
              | 
                243
               | 
              
                243
               | 
              
                  
               | 
            
            
            
              | 
                244
               | 
              
                
               | 
              
                -    # 防止重复上传 
               | 
            
            
            
              | 
                245
               | 
              
                
               | 
              
                -    if photo: 
               | 
            
            
            
              | 
                246
               | 
              
                
               | 
              
                -        if not r.acquire_lock('{}:{}:{}'.format(group_id, user_id, photo.name), 60):
               | 
            
            
            
              | 
                247
               | 
              
                
               | 
              
                -            return response(GroupPhotoStatusCode.DUPLICATE_UPLOAD) 
               | 
            
            
            
              | 
                248
               | 
              
                
               | 
              
                - 
               | 
            
            
            
              | 
                249
               | 
              
                244
               | 
              
                     # 用户校验 
               | 
            
            
            
              | 
                250
               | 
              
                245
               | 
              
                     try: 
               | 
            
            
            
              | 
                251
               | 
              
                246
               | 
              
                         user = UserInfo.objects.get(user_id=user_id) 
               | 
            
            
            
            
            
              | 
                
               | 
              
                
               | 
              
                @@ -258,7 +253,7 @@ def flyimg_upload_api(request): 
               | 
            
            
            
              | 
                258
               | 
              
                253
               | 
              
                     except GroupUserInfo.DoesNotExist: 
               | 
            
            
            
              | 
                259
               | 
              
                254
               | 
              
                         return response(GroupUserStatusCode.GROUP_USER_NOT_FOUND) 
               | 
            
            
            
              | 
                260
               | 
              
                255
               | 
              
                  
               | 
            
            
            
              | 
                261
               | 
              
                
               | 
              
                -    if photo: 
               | 
            
            
            
              | 
                
               | 
              
                256
               | 
              
                +    if photo and r.acquire_lock('{}:{}:{}'.format(group_id, user_id, photo.name), ex=60):
               | 
            
            
            
              | 
                262
               | 
              
                257
               | 
              
                         photo_path, ext = file_save(photo, prefix='fly', ext='jpeg') 
               | 
            
            
            
              | 
                263
               | 
              
                258
               | 
              
                         photo_thumbnail_path = photo_path.replace('.', '_thumbnail.')
               | 
            
            
            
              | 
                264
               | 
              
                259
               | 
              
                         photo_thumbnail2_path = photo_path.replace('.', '_thumbnail2.')
               |